Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor association.scoping not to rely on klass.all #37523

Merged
merged 1 commit into from
Oct 21, 2019

Conversation

kamipo
Copy link
Member

@kamipo kamipo commented Oct 21, 2019

Related #35280, #37360, #37511.

Using klass.all in scoping would potentially cause the warning.

https://buildkite.com/rails/rails/builds/64444#203174d8-b527-4c43-9bd4-44e272f43555/996-1003

@kamipo kamipo merged commit d9dfb4f into rails:master Oct 21, 2019
@kamipo kamipo deleted the refactor_association_scoping branch October 21, 2019 15:35
kamipo added a commit that referenced this pull request Oct 21, 2019
Refactor `association.scoping` not to rely on `klass.all`
kamipo added a commit to kamipo/rails that referenced this pull request Apr 10, 2020
rails#37523 has a regression that ignore extra scoping in callbacks when
create on association relation.

It should respect `klass.current_scope` even when create on association
relation to allow extra scoping in callbacks.

Fixes rails#38741.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant